<template>
  <div class="main">
    <van-nav-bar
      class="head"
      title="分享邀请"
      left-text=""
      left-arrow
      @click-left="onClickLeft"
    />
    <div v-for="(item, index) in list" :key="index">
      <van-image round :src="item.srcFirst" class="first" />
      <h3>任同学^^^Andy</h3>
      <van-image fit="contain" class="second" :src="item.srcScond" />
      <p>扫描二维码，一起寻找中国好品质</p>
    </div>
  </div>
</template>

<script>
export default {
  name: "",
  data() {
    return {
      list: [
        {
          srcFirst: "",
          srcScond: "",
        },
      ],
    };
  },
  methods: {
    onClickLeft() {
      this.$router.push({ path: "/Member" }).catch((error) => error);
    },
  },
};
</script>

<style scoped lang='less'>
.head {
  width: 100%;
  height: 51px;
  color: rgba(80, 80, 80, 1);
  background-color: rgba(239, 239, 239, 1);
  position: fixed;
  top: 0;
}
/deep/.van-nav-bar .van-icon {
  color: rgba(153, 153, 153, 1);
}
/deep/.van-nav-bar__title {
  color: rgba(42, 131, 78, 1);
  font-size: 18px;
}
.main {
  text-align: center;
  margin-top: 20px;
  .first {
    margin-top: 64px;
    width: 90px;
    height: 90px;
  }
  h3 {
    width: 121px;
    height: 24px;
    font-size: 16px;
    margin: 0 auto;
  }
  .second {
    margin-top: 90px;
    width: 165px;
    height: 165px;
  }
  p {
    height: 21px;
    font-size: 14px;
    margin: 0 auto;
    margin-top: 18px;
  }
}
</style>